package com.gree.framework.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.gree.common.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.PK;
import org.nutz.dao.entity.annotation.Table;

import java.time.LocalDateTime;

/**
 * 租户插件对象 SAAS_TENANT_ADDON
 *
 * @author gscm
 * @date 2021-10-19
 */
@Data
@Table("SAAS_TENANT_ADDON")
@ApiModel(description = "租户插件")
@PK({"tenantId", "addonId"})
public class SaasTenantAddon extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租户ID */
    @Column(hump = true)
    @ApiModelProperty("租户ID")
    private String tenantId;

    /** 插件ID */
    @Column(hump = true)
    @ApiModelProperty("插件ID")
    private Long addonId;

    /** 插件到期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(hump = true)
    @ApiModelProperty("插件到期时间")
    private LocalDateTime expireTime;

    /** 状态 */
    @Column
    @ApiModelProperty("状态")
    private Long status;

    public void saasTenantAddonNoPage()
    {
        super.setBaseEntityNull();
    }
}